using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityVipDiscountsUpdateExtend
{
		public static VipDiscounts ToUpdateEntity(this RequestVipDiscountsDto dto)
		{
			return new VipDiscounts
			{
				VdId = dto.id,
				VdCount = dto.count,
				VdEffectiveDay = dto.effectiveDay,
			};
		}
	}
}
